//
//  TPPlayerModel.h
//  Tripvi
//
//  Created by xiaowuxiaowu on 2017/5/16.
//  Copyright © 2017年 xiaowuxiaowu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TPPlayerContainerView.h"

typedef void(^TPPlayerModelBackBlock)();

@interface TPPlayerModel : NSObject
@property (nonatomic,strong)ZFPlayerView *playerView;
@property (nonatomic,strong)ZFPlayerModel *playerModel;
@property (nonatomic,strong)TPPlayerContainerView *playerContainer;

//使用场景主要是在编辑播放器的时候
@property (nonatomic,assign)BOOL isHiderControlView;//是不是始终隐藏控制程
@property (nonatomic,assign)BOOL isPauseByPan;//是不是停止手势


-(instancetype)initWithUrl:(NSURL *)url title:(NSString *)title toView:(UIView *)view;

-(void)resWithUrl:(NSURL *)url; //播放新的
-(void)repeatPlay; //重播
-(void)setPlaceholderImage:(UIImage *)image;//设置展位图
-(void)showBackBlock:(TPPlayerModelBackBlock)block;


@end
